package com.service.bbdy;

import com.bpms.common.CommonUtil;
import com.bpms.common.Dict;
import com.bpms.common.VO;
import com.bpms.esb.IService;

public class Getzp implements IService {

	public VO exec(VO arg0) {
		VO v = new VO();
		try{

			VO vo = Dict.getVO("ZP");
			Object [] obj = vo.getOrderKeys().toArray();			
			for(int i=0;i<obj.length;i++){
				String key = (String)obj[i];			
				v.setAttr("z"+key,vo.getAttr(key));
			}
			
			v.setAttr("result", "1");
			v.setAttr("msg", "获取当前状态成功");
		}catch (Exception e) {
			CommonUtil.debug("Getcontract exception", e);
			
			v.setAttr("result", "9999");
			v.setAttr("msg", "获取当前状态失败");
		}
		
		return v;
	}

}
